package cn.edu.scau.cmi.liuxintong.consistentComposite;

import java.util.HashSet;
import java.util.Set;

public abstract class ConsistentComponent {
	ConsistentComponent parent=null; 
	Set<ConsistentComponent> children=new HashSet<ConsistentComponent>();
	public abstract ConsistentComponent getParent();
	public abstract ConsistentComponent add(ConsistentComponent child);
	public abstract ConsistentComponent delete(ConsistentComponent child);
	public abstract Set<ConsistentComponent> get();
	public abstract String getName();
}
